<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
    <base href="<%=basePath%>">
    <title>优标检测网</title>
    <!-- 浏览器上显示title 图标 icon图标 -->
	<link type="image/x-icon" rel="icon" href="<%=basePath %>resource/img/minilogo.png">

	<!-- 如果想让图标出现在收藏夹中，就：  -->
	<link type="image/x-icon" rel="shortcut icon" href="<%=basePath %>resource/img/minilogo.png">
	<link type="image/x-icon" rel="bookmark" href="<%=basePath %>resource/img/minilogo.png">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="优标">
	<meta http-equiv="description" content="优标">
    <link href="<%=basePath %>portal/css/page.css" type="text/css" rel="stylesheet">
    <link href="<%=basePath %>portal/css/main.css" type="text/css" rel="stylesheet">
    <title>标准列表</title>
</head>
<body>
<%@include file="p_head.jsp"%>
<div class="NCContent">
    <div class="NCNewsHead">
        <div class="MainPage">
            <div class="NCMain">
                <h2 class="NCHeadWord">标准 / Standard</h2>
            </div>
        </div>
    </div>
    <div class="NCNewsList">
        <div class="MainPage">
            <div class="NCMain">
                <div class="NCNewsListContent">
                    <div class="NCNewsListContentHead"></div>
                    <div class="QCListContentBody160417">
                        <div class="QCListFilter160417">
                            <ul>
                                <li>
                                    <span class="QCListTitle">领域<b>·</b></span>
                                    <font id="fieldoption">
                                        <a <c:if test="${empty s_field}">class="Act"</c:if> href="javascript:setField('')">全部</a>
                                        <c:forEach var="field" items="${standardFieldStr}">
                                        	<a href="javascript:setField(${field.dicKey})" <c:if test="${s_field==field.dicKey}">class="Act"</c:if>>${field.dicValue}</a>
										</c:forEach>
                                    </font>
                                    <span style="display:none;" class="QCMoreBtn">更多&nbsp;&or;</span>
                                    <span style="display:none;" class="QCMoreBtnClose">收起&nbsp;&and;</span>
                                </li>
                                <li>
                                    <span class="QCListTitle">类型<b>·</b></span>
                                    <font id="typeoption">
                                        <a <c:if test="${empty s_type}">class="Act"</c:if> href="javascript:setType('')">全部</a>
                                        <c:forEach var="type" items="${standardTypeStr}">
                                        	<a href="javascript:setType(${type.dicKey})" <c:if test="${s_type==type.dicKey}">class="Act"</c:if>>${type.dicValue}</a>
										</c:forEach>
                                    </font>
                                    <span style="display:none;" class="QCMoreBtn">更多&nbsp;&or;</span>
                                    <span style="display:none;" class="QCMoreBtnClose">收起&nbsp;&and;</span>
                                </li>
                                <li class="SearchLi">
                                    <span class="QCListTitle">文件名称<b>·</b></span>
                                    <input class="SearchText" type="text" id="s_standardName" value="${s_standardName}"/>
                                    <input value="搜索" class="SearchBtn" type="button"/>
                                    <c:set var="account" value="${sessionScope.Account}"/>
									<c:if test="${!empty account}">
                                    <input class="QCListFilterSubmit160417" type="button" value="上传标准" id="uploadStd"/>
                                    </c:if>
                                </li>
                            </ul>
                            <div style="clear:both"></div>
                        </div>
                    </div>
                    <div class="QCNewsListContentFoot"></div>
                </div>
                <div class="NCNewsListContent">
                    <div class="NCNewsListContentHead"></div>
                    <div class="NCNewsListContentBody2">
                        <div class="SList">
                            <ul id="standardList">
                            </ul>
                            <div style="clear:both"></div>
                        </div>
                        <div class="news_content sabrosus" id="page"></div>
                    </div>
                    <div class="NCNewsListContentFoot"></div>
                </div>
                <div class="NCNewsListAds">
                    <div class="NCNewsListAdsBox"><a href="${adLeft.adUrl}" target="_blank"><img src="<%=basePath%>${adLeft.file.path}"/></a></div>
                    <div class="NCNewsListAdsBox"><a href="${adMid.adUrl}" target="_blank"><img src="<%=basePath%>${adMid.file.path}"/></a></div>
                    <div class="NCNewsListAdsBox"><a href="${adRight.adUrl}" target="_blank"><img src="<%=basePath%>${adRight.file.path}"/></a></div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" name="pageSize" id="pageSize" value="${pageSize}"/>
<input type="hidden" name="pageCount" id="pageCount" value="${pagecount}"/>
<input type="hidden" name="s_field" id="s_field" value="${s_field}"/>
<input type="hidden" name="s_type" id="s_type" value="${s_type}"/>
<input type="hidden" name="basePath" id="basePath" value="<%=basePath%>"/>
<%@include file="p_foot.jsp"%>
</body>
<script src="<%=basePath %>portal/js/res/jquery-1.4.2.min.js"></script>
<script src="<%=basePath %>portal/js/res/jquery.myPagination.js"></script>
<script src="<%=basePath %>portal/js/res/responsiveslides.min.js"></script>
<script src="<%=basePath %>portal/js/page/base.js"></script>
<script src="<%=basePath %>portal/js/page/index.js"></script>
<script src="<%=basePath %>portal/js/page/standard.js"></script>
<script>
$("#uploadStd").click(function() {
	window.location="<%=basePath%>standard_showCreate.action";
});

$(function(){
	$("#page").myPagination({
	    currPage: 1,
	    pageCount: Number($("#pageCount").val()),
	    pageSize: Number($("#pageSize").val()) ,
	    cssStyle: 'sabrosus',
	    info: {
	        first: '首页',
	        first_on: true,
	        last: '尾页',
	        last_on: true,
	        prev: '&lt',
	        prev_on: true,
	        next: '&gt',
	        next_on: true,
	        //msg_on:false,		//为false 可以关闭 跳转栏
	        //link: '',
	        msg: "<div class='pagenum'><br><br>共{sum}页&nbsp;&nbsp;&nbsp;&nbsp;到第&nbsp;{curr}&nbsp;页</div>",
	    },
		ajax: {  
		    on: true,                         //开启状态
		    callback: 'ajaxCallBack',         //回调函数，注，此 ajaxCallBack 函数，必须定义在 $(function() {}); 外面  
		    url: $("#basePath").val()+"standard_getStandardListJson.action",            //访问服务器地址  
		    dataType: 'json',                 //返回类型  
		    param:{on:true,page:1,rows:20,showType:0,s_type:$("#s_type").val(),s_field:$("#s_field").val(),s_standardName:encodeURI(encodeURI($("#s_standardName").val()))} //参数列表，其中  on 必须开启，page 参数必须存在，其他的都是自定义参数，如果是多条件查询，可以序列化表单，然后增加 page 参数  
		}
	});
});
</script>
</html>